package server.business.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.ReturnBloodInformation;
import server.business.service.ReturnBloodInformationService;
import server.business.utils.results.ysl.Result;

import java.util.List;

@Slf4j
@RequestMapping("/returnbloodinformation")
@RestController
public class ReturnBloodInformationController {

    @Autowired
    ReturnBloodInformationService returnBloodInformationService;

    @GetMapping("/normal/getAll")
        public Result getAll(String id){
        List<ReturnBloodInformation> bloodInformations = returnBloodInformationService.getAll(id);
        return Result.success(bloodInformations);
        }
}
